package com.demo.springBoot2.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;



/**
 * @Author pl711@qq.com
 * @PackageName springBoot2
 * @Package com.demo.springBoot2.entity.vo
 * @Date 2024/4/16 13:00
 * @Version 1.0
 *   权限的讲解
 */

@Getter
@Setter
@ApiModel(value = "Quartz的启动或停止对象", description = "启动停止")
public class QuartzSosVO {
    @NotNull(message = "表达式不能为空")
    @ApiModelProperty(value = "CRON表达式", required = true)
    private String cron;

    @NotNull(message = "任务名称不能为空")
    @ApiModelProperty(value = "任务名称", required = true)
    private String jobName;

    @NotNull(message = "任务组不能为空")
    @ApiModelProperty(value = "任务组", required = true)
    private String groupName;

    @NotNull(message = "调度器不能为空")
    @ApiModelProperty(value = "调度器", required = true)
    private String schedulerName;

    @NotNull(message = "调度器分组不能为空")
    @ApiModelProperty(value = "调度器分组", required = true)
    private String schedulerGroup;

    @NotNull(message = "类反射不能为空")
    @ApiModelProperty(value = "类反射名", required = true)
    private String jobClassName;

    @NotNull(message = "任务状态不能为空")
    @ApiModelProperty(value = "任务状态",example = "true")
    private boolean jobStatus;
}
